package views.activity;

import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JEditorPane;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.text.DefaultCaret;

public class ConfirmView extends JPanel {
	
	public JScrollPane scpData;
	public JEditorPane edpData;
	public JButton btnBack;
	public JButton btnCancel;
	public JButton btnSave;
	
	public ConfirmView() {
		this.setSize(520, 389);
		this.setLayout(null);
		
		JLabel lblPleaseCheck = new JLabel("Please check to ensure the information is correct:");
		lblPleaseCheck.setFont(new Font("Arial", Font.BOLD, 15));
		lblPleaseCheck.setBounds(10, 10, 500, 25);
		add(lblPleaseCheck);
		
		JScrollPane scpData = new JScrollPane();
		scpData.setBounds(10, 40, 500, 302);
		add(scpData);
		
		edpData = new JEditorPane("text/html", "");
		edpData.setEditable(false);
		scpData.setViewportView(edpData);
		
		DefaultCaret caretData = (DefaultCaret)edpData.getCaret();
		caretData.setUpdatePolicy( DefaultCaret.NEVER_UPDATE );
		
		btnBack = new JButton("Back");
		btnBack.setFont(new Font("Arial", Font.PLAIN, 12));
		btnBack.setBounds(70, 353, 80, 25);
		this.add(btnBack);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setFont(new Font("Arial", Font.PLAIN, 12));
		btnCancel.setBounds(220, 353, 80, 25);
		this.add(btnCancel);
		
		btnSave = new JButton("Save");
		btnSave.setFont(new Font("Arial", Font.PLAIN, 12));
		btnSave.setBounds(370, 353, 80, 25);
		this.add(btnSave);
	}
}
